package cc.aiee.paypal.config;

import java.io.Serializable;

import cc.aiee.core.bean.PayBaseConfig;
import cc.aiee.core.interfaces.PayJsonBeanInterface;
import cc.aiee.core.kit.KitJson;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ToString(callSuper = true)
public class PayPalConfig extends PayBaseConfig implements Serializable,PayJsonBeanInterface {

	private static final long serialVersionUID = 1L;

	/**
	 * 商户号
	 */
	private String merchantId;
	/**
	 * 公钥
	 */
	private String publicKey;
	/**
	 * 私钥
	 */
	private String privateKey;
	@Override
	public String toJson() {
		return KitJson.toJSONString(this);
	}
	@Override
	public String toJson(boolean prettyFormat, boolean ignoreNull) {
		return KitJson.toJSONString(this, prettyFormat, ignoreNull);
	}

}
